<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>购物车页</title>
  <link rel="stylesheet" type="text/css" href="__ROOT__/Static/hdjs/hdjs.css">
  <link rel="stylesheet" type="text/css" href="__ROOT__/Static/hdjs/hdjs.min.js">
  <script type="text/javascript" src="__STATIC__/Js/jquery-1.7.2.min.js"></script>
  <script src="__ROOT__/Static/hdjs/hdjs.min.js" type="text/javascript" charset="utf-8"></script>
  <script src="__STATIC__/public/js/index.js" type="text/javascript" charset="utf-8"></script>
  <link rel="stylesheet" type="text/css" href="__STATIC__/public/shop.css">
  <link rel="stylesheet" type="text/css" href="__STATIC__/public/index.css">
  <script type="text/javascript">
  	$(function(){
  		$('.delshop').click(function(){
  			var sid=$(this).attr('sid');
  			$.ajax({
  				type:"post",
  				url:"{|U:'Index/Shop/delshop'}",
  				data:{sid:sid},
  				dataType:'json',
  				success:function(phpDaata){
  					
  				}
  			});
  		})
  		$('.bigdel').click(function(){
  			var data=$('form').serialize();
  			$.ajax({
  				type:"post",
  				url:"{|U:'Index/Shop/delshop'}",
  				data:data,
  				success:function(phpDaata){
  					
  				}
  			});
  		})
  		$('.chauid').click(function(){
  			$.ajax({
  				type:"post",
  				url:"{|U:'Index/Shop/chaxun'}",
  				success:function(phpDaata){
  					var da=phpDaata;
  					if(da==0){
  						alert('请先登陆.亲!');
  						location.href="{|U:'Index/Login/denglu'}";
  					}else if(da==1){
  						location.href="{|U:'Index/Shoplist/index'}";
  					}
  				}
  			});
  		})
  	})
  </script>
</head>

<body>
   <include file="__APP__/Index/View/Common/header.html"/>
    
    <!--购物车开始-->
    <div class="shopcat">
    	<div class="shop_box">
    		<img src="__STATIC__/public/images/shop1.jpg"/>
    		<div class="gouwuche">
    			<ul>
    				<li class="li1"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><a href="{|U:'Index/Daohang/index'}">继续购物</a></li>
    				<li class="li2"><a href="">购物车状态</a><span>({$zong.total_rows}/99)</span></li>
    			</ul>
    		</div>
    		
    		<ul class="shop_one">
    			<li class="li1">
    				<a href="javascript:hd_select_all('.ca_gou')" class="ca_quanxuan" style="color: #5A5A58;">全选</a>
					<a href="javascript:hd_reverse_select('.ca_gou')" class="ca_fanxuan" style="color: #5A5A58;">反选</a>
    			</li>
    			<li class="li2">店铺宝贝</li>
    			<li class="li3">单价</li>
    			<li class="li4">数量</li>
    			<li class="li5">小计(元)</li>
    			<li class="li6">操作</li>
    		</ul>
    		<form action="" method="post">
    		<foreach from="$shop" key="$k" value="$v">
    			
	    		<div class="wupin">
	    			<div class="ca_gou">
		    				<input type="checkbox" name="checkBox[]" value="{$k}" class="checkBox"/>
		    		</div>
	    			
	    			<img src="__ROOT__/{$v['img']['medium']}"/>
	    			<ul class="ul_one">
	    				<li><a href="">{$v.name}</a></li>
	    				<li>
	    					<foreach from="$v['attrSpec']" key="$kk" value="$vv">
	    						<span>{$kk}:{$vv[0]}</span>&nbsp;
	    					</foreach>
	    				</li>
	    			</ul>
	    			<div class="two">
	    				<ul class="ul_two">
	    				  <li class="li3"><span>￥{$v.price}.00</span></li>
	    				  <li class="li1"><span>{$v.num}</span></li>
	    				  <li class="li2"><span>￥{$v.total}.00</span></li>
	    			    </ul>
	    			</div>
	    			<ul class="ul_three">
	    				<li class="li1"><a href="" class="delshop" sid="{$k}">删除此商品</a></li>
	    			</ul>
	    		</div>
	    		
    		</foreach>
    		</form>
    		<ul class="shop_one two">
    			<li class="li1">
    				<a href="javascript:hd_select_all('.ca_gou')" class="ca_quanxuan">全选</a>
					<a href="javascript:hd_reverse_select('.ca_gou')" class="ca_fanxuan">反选</a>
    			</li>
    			<li class="li2"><a href="" class="bigdel">批量删除 </a></li>
    			<li class="li3"></li>
    			<li class="li4 one">宝贝总价<span>￥{$zong.total}.00</span></li>
    			<li class="li5"></li>
    			<li class="li6 one"><a href="javascript:;" class="chauid"></a></li>
    		</ul>
    	</div>
    </div>
    
    <!--购物车结束-->
    
  
    <!--底部-->
    <div class="foot">
    	<div class="gaoduan">
    		<span>高端定制上哇噻网</span>
    	</div>
    	<div class="di">
    		<ul>
    			<li><a href="">关于我们</a></li>
    			<li><a href="">联系我们</a></li>
    			<li><a href="">媒体报道</a></li>
    			<li><a href="">创意画报</a></li>
    			<li><a href="">招贤纳士</a></li>
    			<li><a href="">版权保护</a></li>
    			<li><a href="">用户条款</a></li>
    			<li><a href="">隐私声明</a></li>
    			<li><a href="">友情链接</a></li>
    			<li><a href="">网站地图</a></li>
    			<li><a href="">帮助中心</a></li>
    			<li><a href="">手工客</a></li>
    		</ul>
    		<ul class="u1">
    			<li>北京光年创艺信息技术有限公司 WowSai.com Copyright© 2008-2013 [京ICP备10020900][京公网安备11010502026420][京ICP证090011号]</li>
    		</ul>
    		<div class="tu">
    		   <ul>
    		   	    <li><img src="__STATIC__/public/images/2.png" alt="" /></li>
    		   	    <li><img src="__STATIC__/public/images/1.png" alt="" /></li>
    		   	    <li><img src="__STATIC__/public/images/3.png" alt="" /></li>
    		   </ul>
    	    </div>
    	</div>
    	
    </div>
    
    <div class="ding">
    	<a href="javascript:;"></a>
    </div>
    
</body>
</html>

